<template>
  <div>
    <table cellspacing="0">
      <thead>
      <tr>
        <th>序号</th>
        <th>缺陷编号</th>
        <th>变电站</th>
        <th>设备名称</th>
        <th>处理结果</th>
      </tr>
      </thead>
      <tbody>
      <tr v-for="(item, key) in list" :key="key">
        <td>{{key + 1}}</td>
        <td>{{item['no']}}</td>
        <td>{{item['substationName']}}</td>
        <td>{{item['deviceName']}}</td>
        <td>{{item['solveState']}}</td>
      </tr>
      </tbody>
    </table>
    <div v-show="list.length===0" class="tip">改厂站暂无遥测 请选择其他厂站</div>
  </div>
</template>

<script>
export default {
  name: 'DefectManage',
  data () {
    return {
      list: []
    }
  },
  methods: {
    search (e) {
      window.AppDefectDwr.findDefectInfo(localStorage.buildGroupId, res => {
        this.list = res
      })
    }
  },
  created () {
    this.search()
  }
}
</script>

<style scoped>
.input{
  -webkit-appearance: none;
  outline: 0;
}
</style>
